from flask import Flask, Blueprint, send_file

app = Flask(__name__)

app.jinja_env.auto_reload = True
app.config['TEMPLATES_AUTO_RELOAD'] = True

user_bp = Blueprint('user', __name__)


@app.route('/')
def hello_world():
    return 'hello flask!!!!'


@user_bp.route('/')
def hello_world():
    return 'hello user!'


app.register_blueprint(user_bp, url_prefix='/user')

from goods import goods_bp

app.register_blueprint(goods_bp, url_prefix='/goods')

if __name__ == '__main__':
    app.run(debug=True)
